README for replication files
----------------------------
INITIAL DEPOSIT DATE: 1/24/2025
THIS VERSION: 1/24/2025
-----------------------------
ARTICLE: "Loss Framing in Territorial Disputes"
AUTHORS: Andi Zhou, H.E. Goemans, and Michael Weintraub
-----------------------------
Replication code and data needed to reproduce results presented in-text and in the online appendices.

Please report any errors to Andi Zhou; current contact info: andizhou611@gmail.com
-----------------------------
FILE LIST:

arg_rep.csv: Survey data from Argentina
chl_rep.csv: Survey data from Chile
icow_plot.csv: Historical territorial disputes data from the Issue Correlates of War project (Frederick et al. 2017) used to produce Figure F1 in the online appendices

ZGW_codebook.pdf: Codebook for all three datasets 

ZGW_replication.R: R script that produces all tables, figures, and results in both the main text and online appendices

-----------------------------
PACKAGE VERSIONS:

tidyverse -- 1.3.2
stargazer -- 5.2.3
ggplot2 -- 3.4.1
mediation -- 4.5.0
margins -- 0.3.26
cobalt -- 4.5.0
ivreg -- 0.6-2
interflex -- 1.2.6
car -- 3.1-1

-----------------------------
SOFTWARE VERSIONS:

R version 4.2.2 (2022-10-31)
RStudio version 2024.04.1+748

-----------------------------
PLATFORM and CONFIGURATIONS:

platform: macOS Monterey Version 12.7.6
processor name: Dual-Core Intel Core i5
processor speed: 1.6 GHz
memory: 8G